home *** CD-ROM | disk | FTP | other *** search
- /* p880.c --- bible */
- #include <conio.h>
- main()
- {
- struct text_info t_info;
- window(20, 10, 60, 20);
- textbackground(RED);
- textcolor(YELLOW);
- clrscr();
- getch();
- gotoxy(10, 2);
- gettextinfo(&t_info);
- cprintf("Text information\n\r");
- getch();
- cprintf("Window = (%d, %d), (%d, %d)\n\r",
- t_info.winleft, t_info.wintop,
- t_info.winright, t_info.winbottom);
- getch();
- cprintf("Mode = %d\n\r", t_info.currmode);
- getch();
- cprintf("Attribute now = %d, Normal Attribute = %d\n\r",
- t_info.attribute, t_info.normattr);
- getch();
- cprintf("Screen height = %d, screen width = %d\n\r",
- t_info.screenheight, t_info.screenwidth);
- getch();
- cprintf("We started at (%d, %d)\n\r",
- t_info.curx, t_info.cury);
- getch();
- }